package demo.day02

// 11 Kotlin函数中的默认参数
fun main() {
    action1("小胖",18)
    action2("爷爷")
    action3(25)
}


private fun action1(name: String, age: Int) {
    println("名字是${name},年龄是${age}")
}

private fun action2(name: String, age: Int = 77) {
    println("名字是${name},年龄是${age}")
}

private fun action3(age: Int,name: String = "王五") {
    println("名字是${name},年龄是${age}")
}